import collections
class Solution(object):
    def findEvenNumbers(self, digits):
        c = collections.Counter(digits)
        out = []
        for i in range(100, 1000, 2):
            d = collections.defaultdict(int)
            num = i
            d[num % 10] += 1
            num = num // 10
            d[num % 10] += 1
            d[num // 10] += 1
            flag = True
            for key in d:
                if d[key] > c[key]:
                    flag = False
                    break
            if flag:
                out.append(i)
        return out

